<template>
  <div class="column-center odds-item" @click="selectBtn" :style="itemStyle">
    <span class="number all-center" :style="numberStyle">{{ data.number }}</span>
    <span class="odds" :style="oddsStyle">{{ data.odds }}</span>
  </div>
</template>

<script>
export default {
  name: 'odds-btn',
  props: {
    itemStyle: {
      type: Object,
      default: () => {
        return {
          background: 'linear-gradient(180deg, #FFFFFF 0%, #FBEBEB 100%)',
          border: '1px solid #FACACA',
        }
      },
    },
    numberStyle: {
      type: Object,
      default: () => {
        return { color: '#5E6994', fontSize: '14px' }
      },
    },
    oddsStyle: {
      type: Object,
      default: () => {
        return { color: '#817E87', fontSize: '11px' }
      },
    },
    data: {
      number: '01',
      odds: 48,
    },
  },
  data() {
    return {}
  },
  methods: {
    selectBtn() {
      this.$emit('selectOdds')
    },
  },
}
</script>

<style scoped lang="less">
.odds-item {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  margin-right: 6px;
  margin-top: 6px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  .number {
    font-size: 16px !important;
    font-weight: 600;
  }
}
</style>
